# Maintainer: Waweic <waweic@activ.ism.rocks>
pkgname=uxn
pkgver=0_git20220116
_commit="4d9ba05045708f3051fff53e2aaefd77190bdb55"
pkgrel=0
pkgdesc="An assembler and emulator for the Uxn stack-machine"
url="https://wiki.xxiivv.com/site/uxn.html"
arch="all"
license="MIT"
makedepends="sdl2-dev"
subpackages="$pkgname-doc"
options="!check" #Tests not working yet
source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~rabbits/uxn/archive/$_commit.tar.gz"

builddir="$srcdir"/$pkgname-$_commit
build() {
	HOME=$(mktemp -d) ./build.sh --no-run
}

package() {
	install -Dm 755 -t "$pkgdir"/usr/bin/ "bin/uxnasm"
	install -Dm 755 -t "$pkgdir"/usr/bin/ "bin/uxnemu"
	install -Dm 755 -t "$pkgdir"/usr/bin/ "bin/uxncli"

	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}


sha512sums="
f0edad9fe834dca122106012fa8555fda7b44e6f3219b308bed0454e3b34c0b6d4f2f728455aeef10d92c77e34172a4bee4569cd15e8f624de4d8778ae8c8d1c  uxn-4d9ba05045708f3051fff53e2aaefd77190bdb55.tar.gz
"
